import turtle


# 抬起画笔，向前运动一端距离放下
def skip(step):
    turtle.penup()
    turtle.fd(step)
    turtle.pendown()


def Week(t):
    week = ["星期一", "星期二", "星期三",
            "星期四", "星期五", "星期六", "星期日"]
    return week[t.weekday()]


def Date(t):
    y = t.year
    m = t.month
    d = t.day
    return "%s. %d%d" % (y, m, d)


# 画表盘
def setup(radius):
    turtle.reset()
    turtle.pensize(7)
    for i in range(60):
        skip(radius)
        if i % 5 == 0:
            turtle.forward(20)
            turtle.write(int(12), align="center", font=("Courier", 14, "bold"))
            turtle.backward(20)

            # skip(-radius - 20)
            # skip(radius + 20)
            # if i == 0:
            #     turtle.write(int(12), align="center", font=("Courier", 14, "bold"))
            # elif i == 30:
            #     skip(25)
            #     turtle.write(int(i / 5), align="center", font=("Courier", 14, "bold"))
            #     skip(-25)
            # elif (i == 25 or i == 35):
            #     skip(20)
            #     turtle.write(int(i / 5), align="center", font=("Courier", 14, "bold"))
            #     skip(-20)
            # else:
            #     turtle.write(int(i / 5), align="center", font=("Courier", 14, "bold"))
            # skip(-radius - 20)
        else:
            turtle.dot(5)
            skip(-radius)
        turtle.right(6)


if __name__ == '__main__':
    # turtle.tracer(False)
    setup(90)
